<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<!doctype html>
<html lang="zh">
<head>
    <title>添加部门</title>
    <%@include file="/common/header.jspf"%>
    <script type="text/javascript" src="${ctx}/resources/js/permission/department/add.js"></script>
</head>
<body>
<div class="form-wrap">
    <form id="departmentForm" method="post">
        <div class="input-wrap">
            <label class="label-top">上级部门:</label>
            <input type="text" name="parentId" id="parentDepartmentId" value="${parentId}" readonly style="width: 360px;"  title=""/>
        </div>
        <div class="input-wrap">
            <label class="label-top tip_code">部门编号:</label>
            <input class="easyui-textbox " name="code" id="code" data-options="required:true,validType:'checkCode'" readonly style="width: 360px;" title=""/>
            <label style="display:none;color: red" id="code_err">当前部门编号已存在！</label>
        </div>
        <div class="input-wrap">
            <label class="label-top">部门名称:</label>
            <input class="easyui-textbox "  name="name" data-options="required:true" style="width: 360px;" title=""/>
        </div>
        <div class="input-wrap">
            <label class="label-top">排序号:</label>
            <input class="easyui-numberspinner "  name="sort" value="0" style="width: 360px;" title=""/>
        </div>
        <div class="input-wrap">
            <label class="label-top">备注:</label>
            <input class="easyui-textbox " name="remarks" data-options="prompt:'填写备注',multiline:true"  style="height:60px;width: 360px;" title=""/>
        </div>

    </form>
    <div class="form-button">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg" id="departmentSave" >保存</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-remove fa-lg" id="departmentReset">清空</a>
    </div>
</div>

</body>
</html>
